package com.yoshino.factory.factory_method.pizzastore.order;


import com.yoshino.factory.factory_method.pizzastore.pizza.*;

/**
 * @author yoshino
 **/
public class LDOrderPizza extends OrderPizza {

    @Override
    Pizza createPizza(String orderType) {

        Pizza pizza = null;
        if ("cheese".equals(orderType)) {
            pizza = new LDCheesePizza();
        } else if ("pepper".equals(orderType)) {
            pizza = new LDPepperPizza();
        }

        return pizza;
    }
}
